/*
--------------------------------------------------------------------------------
EDuke32 CON script to fuck off the slime monsters in all(?) their forms.
Thanks to JBlade for writing pretty much all of this, I just copy-pasted stuff.

Include in any mod by putting this into your root eduke32 folder and throwing
the following line into its GAME.CON or EDUKE.CON:

include NOSLIME.CON

Sorted!
--------------------------------------------------------------------------------
*/

// Delete all such monsters every frame
onevent EVENT_GAME

	ifactor EGG killit
	ifactor GREENSLIME killit
	// ifactor LIZTROOP killit		// quick and easy way to test if the con script is included

endevent

onevent EVENT_LOADACTOR

	// delete all trash cans etc. that have the monster in them
	ifactor CANWITHSOMETHING
	{
		ifvare sprite[THISACTOR].lotag 675 // EGG
		{
			killit
		}
		ifvare sprite[THISACTOR].lotag 2370 // GREENSLIME
		{
			killit
		}
	}

	ifactor CANWITHSOMETHING2
	{
		ifvare sprite[THISACTOR].lotag 675 // EGG
		{
			killit
		}
		ifvare sprite[THISACTOR].lotag 2370 // GREENSLIME
		{
			killit
		}
	}

	ifactor CANWITHSOMETHING3
	{
		ifvare sprite[THISACTOR].lotag 675 // EGG
		{
			killit
		}
		ifvare sprite[THISACTOR].lotag 2370 // GREENSLIME
		{
			killit
		}
	}

	ifactor CANWITHSOMETHING4
	{
		ifvare sprite[THISACTOR].lotag 675 // EGG
		{
			killit
		}
		ifvare sprite[THISACTOR].lotag 2370 // GREENSLIME
		{
			killit
		}
	}

	// delete all RESPAWN sprites setup to spawn the monster
	ifactor RESPAWN
	{
		ifvare sprite[THISACTOR].hitag 675 // EGG
		{
			killit
		}
		ifvare sprite[THISACTOR].hitag 2370 // GREENSLIME
		{
			killit
		}
	}

endevent